//index.js
//获取应用实例
var app = getApp();
const WXAPI = require('apifm-wxapi')
var WxParse = require('../../templates/wxParse/wxParse.js');

Page({
  data: {
    fruitName: true,
    stockId: 3000
  },

  //事件处理函数
  swiperchange: function(e) {
      //console.log(e.detail.current)
       this.setData({  
        swiperCurrent: e.detail.current  
    })  
  },
  onLoad(e) {    
    
  },
  
  tobuy: function () {
    wx.navigateTo({
    url: "/pages/goods-details/index?id=" + this.data.kanjiaInfo.kanjiaInfo.goodsId + "&kjId=" + this.data.kanjiaInfo.kanjiaInfo.kjId
    })
  }
})
